package com.example.clublesson01.login

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.kf.lib_base.base.BaseActivity
import com.example.clublesson01.R
import com.example.clublesson01.databinding.ActivityWangLoginBinding

@Route(path = "/app/login/WangLoginActivity")
class WangLoginActivity : BaseActivity<ActivityWangLoginBinding,LoginRepo>() {
    override fun iniView() {
        binding.ivBack.setOnClickListener {
            finish()
        }
        binding.btnSendCode.setOnClickListener {
            ARouter.getInstance().build("/app/login/ChongSendCodeActivity")
                .withString("chongphone",binding.etPhone.text.toString())
                .navigation()
        }
    }

    override fun iniData() {
    }

    override fun getViewModel(): Class<LoginRepo> {
        return LoginRepo::class.java
    }

    override fun Layoutid(): Int {
        return R.layout.activity_wang_login
    }

}